package com.apesource.project02.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

import java.util.Date;

/**
 * @version 1.0
 * @auther:暮雪
 * @date:2025/9/18
 */
@TableName("users")
@Api
public class User {
    @TableId(value = "user_id",type = IdType.AUTO)
    @ApiModelProperty(value = "用户id",example = "1")
    private Integer userId;
    @TableField(value = "username")
    @ApiModelProperty(value = "用户姓名",example = "张三")
    private String userName;
    @ApiModelProperty(value = "密码",example = "123456")
    @TableField("password")
    private String password;
    @TableField("phone_number")
    @ApiModelProperty(value = "手机号",example = "13912345678")
    private String phoneNumber;
    @TableField("email")
    @ApiModelProperty(value = "邮箱地址",example = "3441857178@qq.com")
    private String email;
    @TableField("registration_time")
    private Date registrationTime;

    public User() {
    }

    public User(String userName, String password, String phoneNumber, String email, Date registrationTime) {
        this.userName = userName;
        this.password = password;
        this.phoneNumber = phoneNumber;
        this.email = email;
        this.registrationTime = registrationTime;
    }

    public User(Integer userId, String userName, String password, String phoneNumber, String email, Date registrationTime) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.phoneNumber = phoneNumber;
        this.email = email;
        this.registrationTime = registrationTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }
}
